import { BadRequestException, Controller, Get, Query } from '@nestjs/common';
import { ApiOkResponse, ApiOperation, ApiTags } from '@nestjs/swagger';
import { EvaluationSpecificationService } from './evaluation-specification.service';

@Controller('/v1/evaluation-specification')
@ApiTags('ArticleData')
export class EvaluationSpecificationV1Controller {
  constructor(private readonly evaluationSpecificationService: EvaluationSpecificationService) {}

  /* 先废弃 */
  /*@Get('/all')
  @ApiOperation({ summary: '全部' })
  @ApiOkResponse({ type: EvaluationSpecificationAllResult, isArray: true })
  async all(
    @Query() query: EvaluationSpecificationAllDto,
  ): Promise<EvaluationSpecificationAllResult[]> {
    const res = await this.evaluationSpecificationService.all(query);
    return res;
  }*/

}
